﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zocono.WCS.Domain.EntityInfo;
using Zocono.WCS.Domain.ScRowDomain;
using Zocono.WCS.Infrastructure.ApllicationDto.WCSTaskDto;
using Zocono.WCS.Infrastructure.ApllicationDto;

namespace Zocono.WCS.Application.AppConfigureManage
{
    public class ScRowInfoApp
    {
        private IScRowInfoService _ScRowInfoService;
        public ScRowInfoApp(IScRowInfoService scRowInfoService)
        {
            _ScRowInfoService = scRowInfoService;
        }

        public async Task<PageDto<ScRowInfo>> GetPagedScRowInfoAsync(QueryScRowInfoDto queryScRowInfo)
        {
            return await _ScRowInfoService.GetPagedScRowInfoAsync(queryScRowInfo);
        }
        public async Task<bool> CreateScRowInfoAsync(ScRowInfo scRowInfo)
        {
            return await _ScRowInfoService.CreateScRowInfoAsync(scRowInfo);
        }
        public async Task<bool> ModifyScRowInfoAsync(ScRowInfo scRowInfo)
        {
            return await _ScRowInfoService.ModifyScRowInfoAsync(scRowInfo);
        }
        public async Task<bool> DeleteScRowInfoAsync(List<ScRowInfo> scRowInfoList)
        {
            return await _ScRowInfoService.DeleteScRowInfoAsync(scRowInfoList);
        }
        /// <summary>
        /// 根据id获取数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task<ScRowInfo> GetScRowInfoByIdAsync(long id)
        {
            return await _ScRowInfoService.GetScRowInfoByIdAsync(id);
        }

        /// <summary>
        /// 根据id删除数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task<bool> DeleteScRowInfoByIdAsync(long id)
        {
            return await _ScRowInfoService.DeleteScRowInfoById(id);
        }
    }
}
